/**
 * Created by Administrator on 2015/12/9.
 */
$.linkActive=function(url){
    if(url==undefined){
        var url1=window.location.pathname,
            url2 = window.location.search,
            url = url1+url2;
    }
    var c = $("a[href='"+url+"']");
    c.parent().addClass("on");

};



$(function(){
    $.linkActive();
});

